@echo off

:: set this to the path of the htdocs dir of your apache installation
set serverPath=C:\xampp\htdocs\

:: let this as it is
set url=https://pico-timing.googlecode.com/svn/trunk/
set repo=pico-timing
set interval=20

set usr=picotiming@gmail.com
set pw=jJ8nJ4SE3cY2

set remotePath=%url%

cd ..
svn checkout %remotePath% %repo% --username %usr% --password %pw%
cd %repo%

:Start
svn update --username %usr% --password %pw%

:: add one line per event that should be updated
:: fourth argument is only the folder name for each event
python import.py "WISLIGER11.ore" %serverPath% "Wisliger 2011" "WISLIGER"
python import.py "PFAEFFIKER2012.ore" %serverPath% "Pf&auml;ffiker OL 2012" "PFAEFFIKER"
:: etc...

ping -n %interval% 127.0.0.1>nul
GOTO :Start